package com.xiaoxi.open.design.creation.singletonpattern.service;

import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author xiaoxi
 * @ProjectName creation_pattern
 * @PackageName com.xiaoxi.open.design.creation.singletonpattern.service
 * @ClassName Test1
 * @Description TODO
 * @Date 2024/5/19 16:02
 * @Version 1.0
 */
@Component
public class Test1 {

    @Resource
    private SingletonService singletonService;

    public void test() {
        System.out.println("地址：" + singletonService);
    }
}
